import request from '@/utils/request.js'

export const getArticlesByType = params => {
  return request({
    method: 'GET',
    url: '/app/v1_1/articles',
    params
  })
}
// 读取文章详情
export const getArticle = id => {
  return request({
    method: 'GET',
    url: `app/v1_0/articles/${id}`
  })
}
